﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace weighing
{
    /// <summary>
    /// 图片保存配制
    /// </summary>
    public class ImgConfig
    {

        public static ImgConfig Default
        {
            get
            {
                return new ImgConfig
                {
                    CapturePath = Constant.DefaultImagePath,
                    OosType = OosType.Local,
                    AccessKeyId = "",
                    AccessKeySecret = "",
                    Endpoint = "",
                    BucketName = "",
                    ServerUrl = "",
                    SererInterval = 10,
                };
            }
        }

        /// <summary>
        /// 截图保存的路径
        /// </summary>
        public string CapturePath { get; set; }

        public OosType OosType { get; set; }

        public string AccessKeyId { get; set; }

        public string AccessKeySecret { get; set; }

        public string Endpoint { get; set; }

        public string BucketName { get; set; }
        /// <summary>
        /// 服务器地址
        /// </summary>
        public string ServerUrl { get; set; }

        /// <summary>
        /// 服务器上传间隔时间 秒
        /// </summary>
        public int SererInterval { get; set; }
    }
}
